package xinxin.com.ObserverPattern.Observer.Detail;

import xinxin.com.ObserverPattern.Observer.Observer;
import xinxin.com.ObserverPattern.Subject.Subject;

public class NBAObserver extends Observer {
    public NBAObserver(String name, Subject sub) {
        super(name, sub);
    }

    @Override
    public void Update() {
        System.out.println(sub.getAction() + "," + name + "关闭NBA直播，继续工作");
    }
}
